HM = {};
HM.SomeFun = function(arg) {
   include_nav_html(arg); 
};

function include_nav_html(scriptArgs){
    //判断是哪边的菜单栏
    if(scriptArgs == 'nav_html'){
        var surl = "../_resource/html/nav.html";
    } else if(scriptArgs == 'head_html'){
        var surl = "../_resource/html/head.html";
    }
    $.ajax({
        async:false,
        url : surl,
        success : function(result){
            if(scriptArgs == 'nav_html'){
                document.getElementById("site-menubar-body").innerHTML=result;
            } else if(scriptArgs == 'head_html'){
                document.getElementById("navbardefaultmodel").innerHTML=result;
                var url_info = window.location.pathname;
                url_arr = url_info.split("/");
                $(".breadcrumb li").eq(0).html("<a href='#'><i class='icon wb-home'></i>"+url_arr[url_arr.length-2]+"</a>");
            }
        }
    }); 
}
